<!DOCTYPE html>

<!-- BEGIN HEAD-->
<?php
require_once("Admin/template/header.php");
?>
<!-- END  HEAD-->

<!-- BEGIN BODY-->
<body class="padTop53 ">

<!-- MAIN WRAPPER -->
<div id="wrap">


    <!-- HEADER SECTION (BCORD ADMIN)  Top-->
    <?php
    require_once "Admin/template/top.php";
    ?>
    <!-- END HEADER SECTION (BCORD ADMIN)  Top-->


    <!-- MENU SECTION （Left Menu）-->
    <?php
    require_once("Admin/template/left.php");
    ?>
    <!--END MENU SECTION （Left Menu）-->


    <?php
    $vid = $data['one']['vid'];
    $videoname = $data['one']['videoname'];
    $tid = $data['one']['tid'];
    $intro = $data['one']['intro'];
    $uploadadmin = '2';
    $uploaddate = date("YmdHis");
    $hittimes = 0;
    $downtimes = 0;
    $address = $data['one']['address'];
    $pic = $data['one']['pic'];
    $filepath = 'images/';
    $newPicPath = $filepath.$pic;
    ?>

    <!--PAGE CONTENT -->
    <div id="content">

        <div class="inner" style="min-height:1200px;">
            <div class="row">
                <div class="col-lg-12">
                    <!--Input Content -->

                    <h3>请修改视频信息</h3>
                    <form class="form-horizontal" method=post action="admin.php?c=video&m=update" enctype="multipart/form-data">
                        <input type="hidden" name="vid" value=<?php echo $vid; ?>>

                        <div class="form-group">
                            <label for="videoname" class="col-md-2 control-label">视频名称</label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="videoname" name="videoname"
                                       value=<?php echo $videoname; ?>>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">视频类型</label>
                            <div class="col-md-10">
                                <select class="form-control" name="videotype">
                                    <option value="0">---请选择---</option>
                                    <option value="1" <?php if ($tid == '1') echo "selected"; ?>>电影2</option>
                                    <option value="2" <?php if ($tid == '2') echo "selected"; ?>>电视剧</option>
                                    <option value="3" <?php if ($tid == '3') echo "selected"; ?>>动画片</option>
                                    <option value="4" <?php if ($tid == '4') echo "selected"; ?>>科技</option>
                                    <option value="5" <?php if ($tid == '4') echo "selected"; ?>>体育</option>
                                    <option value="6" <?php if ($tid == '4') echo "selected"; ?>>教育</option>
                                    <option value="9" <?php if ($tid == '4') echo "selected"; ?>>原创</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">视频海报</label>
                            <div class="col-md-10">
                                <input type="file" name="pic"><br>
                                原海报：<img src=<?php echo $newPicPath; ?> width="80px" height="80px" class="img-circle">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">视频简介</label>
                            <div class="col-md-10">
                                <textarea name="intro" class="form-control"
                                          rows="5"><?php echo $intro; ?></textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="address" class="col-md-2 control-label">下载地址</label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" name="address"
                                       value=<?php echo $address; ?>>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <input type="submit" class="btn btn-primary" value="更新">

                            </div>
                        </div>

                    </form>

                    <!--End Input Content-->

                </div>
            </div>

            <hr/>


        </div>


    </div>
    <!--END PAGE CONTENT -->


</div>

<!--END MAIN WRAPPER -->

<!-- FOOTER -->
<?php
require_once "Admin/template/footer.php";
?>
<!--END FOOTER -->

</body>
<!-- END BODY-->

</html>
